import { Random } from "mockjs"; // 导出随机函数
import Mock from "mockjs";

function getArtShowByPage(req: any) {
  return {
    success: true,
    message: "注册成功",
    code: "200",
    data: Mock.mock({
      data: [
        {
          id: "1",
          name: "@cname()",
          region: "@ctitle()",
          address: "1221",
        },
        {
          id: "8",
          name: "@cname()",
          region: "@ctitle()",
          address: "1221",
        },
        {
          id: "2",
          name: "@cname()",
          region: "@ctitle()",
          address: "1221",
        },
        {
          id: "3",
          name: "@cname()",
          region: "@ctitle()",
          address: "1221",
        },
        {
          id: "4",
          name: "@cname()",
          region: "@ctitle()",
          address: "1221",
        },
      ],
      total: 20,
    }),
  };
}

function addArtShow(req: any) {
  return {
    success: true,
    message: "成功",
    code: "200",
    data:null
  };
}

export default {
  getArtShowByPage,
  addArtShow
};
